home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
mtgrap1c
/
demo2.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-13
|
2KB
|
63 lines
/*
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒ ▒
▒ ▒
▒ Neuromancer's Graphics Library ▒
▒ Version 1.0c ▒
▒ ▒
▒ Random lines will be displayed on the full screen ▒
▒ and then in a clipped region. ▒
▒ ▒
▒ ▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒ ▒
▒ Project: MTLIB01.LIB ▒
▒ DEMO2.CPP ▒
▒ ▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
*/
#include <iostream.h>
#include <stdlib.h>
#include <conio.h>
#include "video.h"
#include "line.h"
void main(void)
{
mtSetVGAMode(); //Set up VGA Mode
while(!kbhit())
{
mtLine( rand() % 320,rand()%200,rand() %320, rand() %200, rand()%255+1 ) ;
}
getch();
mtClrScr(0);
mtSetWindow(15,15,304,184); //set up clip region
mtClrScr(15); //clear region to color 15
while(!kbhit())
{
mtCLine( random(320),random(200),random(320), random(200), random(256));
}
getch();
mtSetTextMode();
cout << "Thank you for using the library!" << endl;
exit(0);
}